package com.choudou5.solr.framework.holder;


import com.choudou5.solr.util.AssertUtil;

/**
 * @Name：NamedThreadLocal 说明
 * @@author choudou5
 * @@date 2018-07-24
 */
public class NamedThreadLocal<T> extends ThreadLocal<T> {
    private final String name;

    public NamedThreadLocal(String name) {
        AssertUtil.hasText(name, "Name must not be empty");
        this.name = name;
    }

    public String toString() {
        return this.name;
    }
}

